package com.zl_huang.example.model;

import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="exam_role")
public class Role {
	@Id
	@Column(name = "role_id", nullable = false)
	private Integer role_id;
	@Column(name = "name",length = 45 , nullable = false)
	private String name;
	
	@OneToMany(mappedBy="role")
	private Set<UserRole> roleUser;
	public Role(){}
	public Integer getRole_id() {
		return role_id;
	}
	public void setRole_id(Integer role_id) {
		this.role_id = role_id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	

}
